import scrapy
class GanjiSpider(scrapy.Spider):
    name = 'mySpider'
    allowed_domains = ['gy.ganji.com']
    start_urls  = ['http://gy.ganji.com/fang1/a1/']


    def parse(self,response):
        title_list = response.xpath(".//div[@class='f-list-item ershoufang-list']/dl/dd[1]/a/text()").extract()
        price_list = response.xpath(".//div[@class='f-list-item ershoufang-list']/dl/dd[5]/div[1]/span[1]/text()").extract()
        for x in title_list:
            print(x)